@layout("/common/_container.html"){
<style>
    .ui-state-default {
        height: 40px;
        background: #fff;
        border: 1px solid aliceblue;
        line-height: 40px;
        border-radius: 3px;
        margin-bottom: 2px;
        width: 50%;
    }

    .ui-state-default:hover {
        cursor: pointer;
    }

    .title {
        background: #000;
        color: #fff;
    }

    .sortLeft {
        padding-right: 20px;
    }

    .sortRight {
        padding-right: 20px;
    }

    .ui-sortable {
        /*float: right;*/
    }

    .right_box {
        width: 330px;
        height: 400px;
        position: absolute;
        top: 57px;
        left: 590px;
        border: 1px solid #1E84C6;
    }
</style>
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal" id="consultantInfoForm">
            <div style="display: none">
                <input type="hidden" id="sortMap" value="">
                <input type="hidden" id="id" value="${id}">
                <input type="hidden" id="reservationsId" value="${reservationsId}">
                <input type="hidden" id="isReturnVisit"/>
            </div>
            <div class="row">
                初诊时间：${firstVisitDate}
                初诊tc：${tcName}
            </div>
            <div class="row">
                添加回访详情：
                <div><textarea id="revisitContent" name="revisitContent" rows=5 cols=150></textarea>
                </div>
            </div>
            <div class="row">
                添加TC诊断：
                <div><textarea id="diagnosisContent" name="diagnosisContent" rows=5 cols=150></textarea>
                </div>
            </div>
            <div class="row">
                <input type="radio" name="radio" id="revisit" checked="checked" value="回访"/>回访
                <input type="radio" name="radio" id="noRevisit" value="不回访"/>不回访
            </div>
            <div id="url2" class="row">
                不回访原因：
                <div><textarea id="causeOfNoReturnVisit" name="causeOfNoReturnVisit" rows=5 cols=150></textarea>
                </div>
            </div>
            <div id="url1" class="row">
                <div class="col-sm-6">
                    <#input id="reservations" name="预约回访人" value="${reservations}"/>
                    <#input id="appointmentTime" name="预约回访时间" type="datetime"
                            clickFun="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})"/>
                    <#input id="remarksOfReturnVisit" name="回访备注" />
                    <label class="col-sm-3 control-label">消费项目</label>
                    <div class="col-sm-9">
                        <select id="expenditureProject" name="expenditureProject" class="form-control"
                                onchange="ReservationsRecordTable.getData()">
                        </select>
                    </div>
                    <label class="col-sm-3 control-label">跟踪状态</label>
                    <div class="col-sm-9">
                        <select class="form-control" id="followStatus" name="followStatus">
                            <option value="">请选择</option>
                            <option value="跟踪中">跟踪中</option>
                            <option value="跟踪完成">跟踪完成</option>
                            <option value="跟踪结束">跟踪结束</option>
                        </select>
                    </div>
                    <label class="col-sm-3 control-label">消费状态</label>
                    <div class="col-sm-9">
                        <select class="form-control" id="consumptionStatus" name="consumptionStatus">
                            <option value="">请选择</option>
                            <option value="未消费">未消费</option>
                            <option value="只交定金">只交定金</option>
                            <option value="未完成">未完成</option>
                            <option value="完成">完成</option>
                        </select>
                    </div>
                </div>
            </div>
            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="ConsultantInfoDlg.addIsRevisit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="ConsultantInfoDlg.close()"/>
                </div>
            </div>
            <div class="row">
                <label class="control-label"> 回访详情</label>
                <div ><textarea id="huifang" name="huifang" rows=5 cols=150 disabled="disabled">${reservationsInfo.huifang}</textarea></div>
            </div>
            <div class="row">
                <label class="control-label"> 看诊详情</label>
                <div class="col-sm-12 proSort">
                    <div style="width:100%;background-color: #F5F5F5;">
                        <#sortDiagnosisDetails  id="sortDiagnosisDetail" list="${consultantInfoList}"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</div>
</div>

<link rel="stylesheet" href="${ctxPath}/static/css/jqui/jquery-ui.min.css">
<script src="${ctxPath}/static/js/jquery-ui.min.js"></script>
<script src="${ctxPath}/static/modular/tcCenter/consultant/consultant_infos.js"></script>
<script type="text/javascript">
    //初始化下拉消费项目
    $.post(Feng.ctxPath + "/payService/getList", function (data) {
        var txt = '<option value="">--请选择消费项目--</option>';
        for (var i = 0; i < data.length; i++) {
            txt += '<option value="' + data[i].department + '">' + data[i].department + '</option>';
        }
        document.getElementById('expenditureProject').innerHTML = txt;
        //状态单选
        var seletepayservicename = $('#payservicenameValue').val();
        if (seletepayservicename != "") {
            $("#appointmentPayService option[value=" + seletepayservicename + "]").attr("selected", "selected");
        }
    }, "json");
</script>

@}
